#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
void* my_memcpy(void* pd, const void* ps, size_t num)
{
	while (num--)
	{
		*(char*)pd = *(char*)ps;
		pd = (char*)pd + 1;
		ps = (char*)ps + 1;
	}
}
int main()
{
	int arr1[] = { 1,2,3,4,5,6,7,8,9,0 };
	int arr2[10] = { 0 };
	my_memcpy(arr2, arr1, 20);
	int i = 0;
	for (i = 0; i < 10; i++)
	{
		printf("%d ", arr2[i]);
	}
	return 0;
}